package entity

import (
	"shqsoft.cn/pasnj/base"
	"time"
)

//BHYW 用户
type BHYW struct {
	JLID      int        `gorm:"AUTO_INCREMENT;primary_key;column:JLID"`
	Sjrq      *time.Time `gorm:"column:数据日期;type:date;"`
	Sssjg     string     `gorm:"column:所属机构;size:60"`
	Klrq      *time.Time `gorm:"column:开立日期;type:date;"`
	Dqrp      *time.Time `gorm:"column:到期日期;type:date;"`
	Xyztm     string     `gorm:"column:协议状态代码;size:60"`
	Rmbbhzldm string     `gorm:"column:人民币保函核算种类代码;size:60"`
	Hb        string     `gorm:"column:货币;size:60"`
	Sxrq      *time.Time `gorm:"column:生效日期;type:date;"`
	HuoBi     string     `gorm:"column:货币;size:60"`
	Bzje      float64    `gorm:"column:保函金额"`
	Dqye      float64    `gorm:"column:当前余额"`
	Dfbz      string     `gorm:"column:垫付标志;size:60"`
	Bhzldm    string     `gorm:"column:保函种类代码;size:60"`
	Sxfje     float64    `gorm:"column:手续费金额"`
	Kmh       float64    `gorm:"column:科目号"`
	Gjbzbz    string     `gorm:"column:国际保函标志;size:60"`
	Khmc      string     `gorm:"column:客户名称;size:60"`
	Bhxzdm    string     `gorm:"column:保函性质代码;size:60"`
	Sxfzrmb   float64    `gorm:"column:手续费金额折人民币"`
	Cpbh      string     `gorm:"column:产品编号"`
	Zzzjgdm   string     `gorm:"column:组织机构代码"`
	Ywssxf    float64    `gorm:"column:应收未收手续费"`
	Ywssxf1   float64    `gorm:"column:RECVBL_COMM_FEE"`
}

//TableName User用户表名
func (BHYW) TableName() string {
	return "V_CM_GUAR_INFO_SUM_M"
}

// BHYWEF G
func BHYWEF() base.EntityFunc {
	return func() interface{} {
		entity := BHYW{}
		return &entity
	}
}

//BHYWESF GJ
func BHYWESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []BHYW
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("BHYW", base.NewDefaultDao(BHYWEF(), BHYWESF(), nil))
}
